package com.zzwc.vote.www.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * @author weirdor
 * @since 2018-06-06
 */
@TableName("vote_enterprise")
public class VoteEnterprise extends Model<VoteEnterprise> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id 自增
     */
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 企业名称
     */
	private String name;
    /**
     * 企业图片
     */
	@TableField("image_url")
	private String imageUrl;
    /**
     * 投票数
     */
	private Integer count;
    /**
     * 备注
     */
	private String remark;
    /**
     * 企业创建时间
     */
	@TableField("create_time")
	private Date createTime;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getImageUrl() {
		return imageUrl;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "VoteEnterprise{" +
			"id=" + id +
			", name=" + name +
			", imageUrl=" + imageUrl +
			", count=" + count +
			", remark=" + remark +
			", createTime=" + createTime +
			"}";
	}
}
